package com.sneaker.shower.mapstruct;

import com.sneaker.shower.entity.domain.organization.MainImageDO;
import com.sneaker.shower.entity.dto.MainImageDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper(componentModel = "spring")
@Component
public interface MainImageMapStruct {

    MainImageMapStruct INSTANCE = Mappers.getMapper(MainImageMapStruct.class);

    MainImageDO dto2DO(MainImageDTO mainImageDTO);

    List<MainImageDO> dtoList2DOList(List<MainImageDTO> mainImageDTOS);

    MainImageDTO do2DTO(MainImageDO mainImageDO);

    List<MainImageDTO> doList2DTOList(List<MainImageDO> mainImageDOS);
}
